<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/9/12
  Time: 22:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>DeleteAndPut</title>
</head>
<body>
<%--删除表单--%>
<form action="/c6/delete/" method="post">
    <%--将post请求改为delete请求--%>
    <input type="hidden" name="_method" value="DELETE">
        <input type="text" name="id">
    <input type="submit" value="删除">
</form>
<br>
<form action="/c6/put/" method="post">
    <%--将post请求改为delete请求--%>
    <input type="hidden" name="_method" value="PUT">
        <input type="text" name="id">
    <input type="submit" value="更新">
</form>
</body>
</html>
